home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
- From: Dan Pop <danpop@mail.cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: timer
- Date: Thu, 1 Feb 1996 01:52:38 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602010052.AA19690@dxmint.cern.ch>
- References: <311000C2.546DE888@applique.sedd.trw.com>
- X-NNTP-Posting-Host: hpl3sn03.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
-
- Ilan Tirer <tireri@applique.sedd.trw.com> writes:
-
- >How would you setup a timer so every 1 minute I can perform some
- >operation.
-
- The answer is very simple: you can't do this in C :-)
-
- You need additional support from your OS to achieve this, so the
- best thing to do is to repost the question to a platform-specific
- newsgroup.
-
- If you happen to be on a Unix platform, check the man pages for the
- functions signal() and alarm() (or, for a more esoteric approach,
- setitimer()).
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-